<?php
include "../app/common.php";
//$ak = "45_eXukGRCbznD1FLOs7OtqcoZ9tCigxDc4dndIWHURPBZRALuceKND2kXJoryVrL5YpfgVov2utDgih3YvwCnWxzaU0I1UKjgSHys1eZpl_IWxFlsCh86pLro_oBBmgT9khoYWJKC4FIsY59iVIKVfAGAXZK";
////$appid = "wxa8290ebfa486794e";
////$url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid={$appid}&redirect_uri=http://wx25.fzyhh.top/index/index/index&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
//$json = '{
//     "button":[
//     {
//          "type":"view",
//          "name":"商城首页",
//          "url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa8290ebfa486794e&redirect_uri=http://shop.fzyhh.top/index.php/index/index/index&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
//     },
//     {
//          "type":"view",
//          "name":"分类中心",
//          "url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa8290ebfa486794e&redirect_uri=http://shop.fzyhh.top/index.php/index/Cate/category&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
//     },
//     {
//          "type":"view",
//          "name":"订单中心",
//          "url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa8290ebfa486794e&redirect_uri=http://shop.fzyhh.top/index.php/index/User/user&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
//     }]
// }';
//$url = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token={$ak}";
//$rt = json_decode(https_request($url,$json),true);
//echo "<pre>";
//print_r($rt);
//echo "</pre>";